#include<iostream>
#include<algorithm>
using namespace std;
int num[100050]={0};
int ans=0;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    ans=n;
    for(int i=0;i<n;i++)cin>>num[i];
    sort(num,num+n);
    int lp=0;
    for(int i=1;i<n;i++){
        if(num[i]>num[lp]){
            lp++;
            ans--;
        }
    }
    cout<<ans<<endl;
    return 0;
}
